<style>
  .sortable-class { list-style-type: none; margin: 0; padding: 0; width: 60%; }
  .sortable-class li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 20px; }
  .sortable-class li span { position: absolute; margin-left: -1.3em; }
</style>
<?php 
$arr_tab = array();
foreach($dataPlatform->getData() as $index => $device){
    $arr_tab['tab'.($index+1)] = array(
                                    'title'=>$device->name,
                                    'content'=>$this->widget('WidgetPlatform',array('platform_id'=>$device->id),true),                                                    
                                    );
}
?>

<?php
if(count($arr_tab) > 0){
    $this->widget('CTabView', array(
        'tabs'=>$arr_tab
    ));
}else{
    echo "<p style='color:red'>Bạn chưa chọn nền tảng cho game</p>";
}
?>





